package operation.translate.multilingual;

import java.awt.*;
import java.io.File;
import java.io.IOException;

public class openTxtTest {
    public static void main(String[] args) {
        String basePath = "D:\\workspace\\abandon-me\\";
        String ftlPathTranslate = "server\\src\\main\\java\\operation\\translate\\multilingual\\";
        File f=new File(basePath + ftlPathTranslate + "多语言代码.txt");
        System.out.println("文件是否存在:" + f.exists());
        try {
            Desktop.getDesktop().open(f);
            System.out.println("打开文件成功:" + basePath + ftlPathTranslate + "多语言代码.txt");
        } catch (IOException e) {
            System.out.println("打开文件失败");
            e.printStackTrace();
        }
    }
}
